package com.tourism.home.service;

import com.tourism.home.dao.ScenicDao;
import com.tourism.home.entity.Scenic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScenicService {

    @Autowired
    ScenicDao scenicDao;

    public List<Scenic> getScenicByType(String type){
        return scenicDao.getScenicByType(type);
    }

    public List<Scenic> getScenicByAddress(String address){
        return scenicDao.getScenicByAddress(address);
    }

    public List<Scenic> getScenicByTitle(String title){
        return scenicDao.getScenicByTitle(title);
    }
}
